@charset "utf-8";

/* reset */

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
textarea,
p,
blockquote,
th,
td,
input,
select,
textarea,
button {
    margin: 0;
    padding: 0
}

/* 初始化标签在所有浏览器中的margin、padding值 */

fieldset,
img {
    border: 0 none
}

/* 重置fieldset（表单分组）、图片的边框为0*/

dl,
ul,
ol,
menu,
li {
    list-style: none
}

/* 重置类表前导符号为onne,menu在HTML5中有效 */

blockquote,
q {
    quotes: none
}

/* 重置嵌套引用的引号类型 */

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none
}

/* 重置嵌套引用*/

input,
select,
textarea,
button {
    vertical-align: middle
}

/* 重置表单控件垂直居中*/

button {
    border: 0 none;
    background-color: transparent;
    cursor: pointer
}

/* 重置表单button按钮效果 */

body {
    background: #fff
}

/* 重置body 页面背景为白色 */

body,
th,
td,
input,
select,
textarea,
button {
    font-size: 20px;
    line-height: 1;
    color: #666
}

/* 重置页面文字属性 */

a {
    text-decoration: none
}

/* 重置链接a标签 */

a:active,
a:hover {
    text-decoration: none
}

/* 重置链接a标签的鼠标滑动效果 */

address,
caption,
cite,
code,
dfn,
em,
var {
    font-style: normal;
    font-weight: normal
}

/* 重置样式标签的样式 */

caption {
    display: none;
}

/* 重置表格标题为隐藏 */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* 重置table属性 */

img {
    vertical-align: top
}

/* 图片在当前行内的垂直位置 */

/* 页面设置 */

/* 取消a标签点击后的虚线框 */

a {
    outline: none;
}

a:active {
    star: expression(this.onFocus=this.blur());
}

/* 设置页面文字等在拖动鼠标选中情况下的背景色与文字颜色 */

/*
::selection {color: #fff;background-color: #4C6E78;}
::-moz-selection {color: #fff;background-color: #4C6E78;}
*/

/*清除浮动*/

.clear {
    clear: both;
}

/*清除浮动--推荐使用*/

.clearfix:before,
.clearfix:after {
    content: '';
    display: table;
}

.clearfix:after {
    clear: both;
}

hr {
    width: 100%;
    border: none;
    height: 1px;
    margin: 0;
    padding: 0
}

$blue:#7bafd4;
$border:1px solid #eee;

* {
    padding: 0;
    margin: 0;
    font-family: arial;
}

.center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.center2 {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.center3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.padding-a {
    padding: 0 5vw
}

.padding-b {
    padding: 10px 0;
}

.size-l {
    font-size: 18px;
}

.size-m {
    font-size: 16px;
}

.size-s {
    font-size: 12px;
}

.center-y {
    position: absolute;
    top: 50%;
    transform: translatey(-50%)
}

.center-x {
    position: absolute;
    left: 50%;
    transform: translatex(-50%)
}

@mixin abs($t:50px) {
    position: absolute;
    top: $t;
}

.rule {
    position: absolute;

    right: 5%;
    font-size: 13px;
    color: #aa001d;
    font-weight: bold;
    cursor: pointer;
    width: 100px;

    i {
        font-size: 20px;
        margin: 10px;
        display: inline-block;
    }

    p {
        display: inline-block;
    }
}

body {
    margin: 0;
    padding: 0;
    @extend .center3;
    color: $blue;
    background: #fff;
    overflow-y: hidden;

    main {
        height: 200vh;
        position: absolute;
        top: 0;
        overflow: hidden;
        width: 100vw;
        max-width: 600px;
        min-width: 315px;

        >div {
            height: 100vh;
            width: 100%;
            background: #eee;

        }

        .main1 {

            position: relative;
            @extend .center2;

            .rule {
                bottom: 40px;
            }
        }

        .main2 {

            background: url(../img/bg4.png) no-repeat center center;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;

            >div {
                width: 80%;
                padding: 5% 10%;
                color: #000;
                position: relative;
                height: 90%;
                overflow-y: auto;

                >h4 {
                    line-height: 1.5em;
                }

                .rule {
                    position: absolute;
                    right: 2%;
                    font-size: 17px;
                    font-weight: bold;
                    cursor: pointer;

                    color: #000
                }

                >p {
                    font-size: 14px;
                    line-height: 1.5em;
                }
            }
        }
    }

    table {
        margin: 0.5em;

        th {
            font-size: 17px;
        }

        td {
            font-size: 14px;
            text-align: center;
        }
    }
}

img:nth-child(1) {
    width: 70%;
    position: absolute;
    top: 38%;
    transform: translatey(-38%);
    left: -80%;
    z-index: 1000;
}

img:nth-child(2) {
    width: 40%;
    position: absolute;
    top: 60%;
    transform: translatey(60%);
    left: 30%;
    opacity: 0;
    cursor: pointer;
    z-index: 1000;
}